package 抽象类HouseProperty及其子类;

/**
 * @author ：wang-ting
 * @Date：2025/6/22 17:47
 */
public class Villa extends HouseProperty{
    protected Villa(double area, double unitPrice) {
        super(area, unitPrice);
    }

    @Override
    public double taxCalculation() {
        return this.area * this.unitPrice * 0.05 + 100000;

    }
}
